{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# stemgraphic quickstart with numbers\n", "\n", "Import stem_graphic from stemgraphic (shortcut) or explicitely from stemgraphic.num." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "%matplotlib inline\n", "import pandas as pd\n", "from stemgraphic import stem_graphic" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Load a data frame" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "df = pd.read_csv('../iris.csv')" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | sepal_length | \n", "sepal_width | \n", "petal_length | \n", "petal_width | \n", "
---|---|---|---|---|
count | \n", "150.000000 | \n", "150.000000 | \n", "150.000000 | \n", "150.000000 | \n", "
mean | \n", "5.843333 | \n", "3.054000 | \n", "3.758667 | \n", "1.198667 | \n", "
std | \n", "0.828066 | \n", "0.433594 | \n", "1.764420 | \n", "0.763161 | \n", "
min | \n", "4.300000 | \n", "2.000000 | \n", "1.000000 | \n", "0.100000 | \n", "
25% | \n", "5.100000 | \n", "2.800000 | \n", "1.600000 | \n", "0.300000 | \n", "
50% | \n", "5.800000 | \n", "3.000000 | \n", "4.350000 | \n", "1.300000 | \n", "
75% | \n", "6.400000 | \n", "3.300000 | \n", "5.100000 | \n", "1.800000 | \n", "
max | \n", "7.900000 | \n", "4.400000 | \n", "6.900000 | \n", "2.500000 | \n", "